﻿using Ewell.BizComponent.UI.Charge.Model.Request;
using Ewell.BizComponent.UI.OutSetl.ViewModel;
using MahApps.Metro.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Ewell.BizComponent.UI.OutSetl.Windows
{
    /// <summary>
    /// OutSettlementWindow.xaml 的交互逻辑
    /// </summary>
    public partial class OutSettlementWindow : MetroWindow
    {
        private OutSettlementVm _outSettlementVm;
        public OutSettlementVm outSettlementVm
        {
            get => _outSettlementVm;
            set
            {
                if(_outSettlementVm!=value)
                {
                    _outSettlementVm = value;
                    OnPropertyChanged(nameof(outSettlementVm));
                }
            }
        }
        public OutSettlementWindow()
        {
            InitializeComponent();
            this.DataContext = this;
        }

        public OutSettlementWindow(OutSettlementVm outSettlementVm):this()
        {
            this.outSettlementVm= outSettlementVm;
        }
    }
}
